package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.ConfirmBeen;
import cn.xfdzx.android.apps.shop.bean.GoodsUpStateBeen;
import cn.xfdzx.android.apps.shop.bean.ShopInGoodListBeen;
import cn.xfdzx.android.apps.shop.bean.ShopOrderListBeen;
import cn.xfdzx.android.apps.shop.bean.UpdateNumPriceBeen;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface ShopInOrderListContract {
    interface Model {
        Flowable<ShopOrderListBeen> initData(String status,String keyWord, String page, String limit);
        Flowable<ConfirmBeen> confirm(String order_id);
        }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onOrderListSuccess(ShopOrderListBeen bean);
        void onConfirmSuccess(ConfirmBeen bean,int position);

        /**
         * 刷新完成
         */
        void finishRefresh();

        /**
         * 加载完成
         */
        void finishLoadMore();

         }

    interface Presenter {
        /**
         * 请求各个状态 的订单列表
         */
        void initData(boolean isRefresh, boolean isLoading, String status, String keyWord, String page, String limit);

        void confirm(String from,  int position);
    }
}
